<html>
<head>
		<title>TicketMeister Admin Config Console</title>
</head>
<body>
		<h1>TicketMeister</h1>
		<h2>Admin Config Console</h2>
		<hr />
		<h3>Dependent Question Hierarchy</h3>
		<table border="1">
				<tr><th><a href="#">N</a></th><th>Parent</th><th>#</th><th>Question</th><th>Ticket Recipient</th></tr>
				<?php foreach($questions as $question): ?>
						<tr>
							<td><a href="#">D</a>
								<?php if($question['parent']==0): ?>
									<a href="#">N</a>
								<?php endif; ?>
							</td>
							<td><?= $question['parent']; ?></td>
							<td><?= $question['question_id']; ?></td>
							<td><?= $question['question']; ?></td>
							<td><?= $question['recipient']; ?></td>
						</tr>
				<?php endforeach; ?>
		</table>
		<form action="admin.php" method="POST" name="newQuestionForm" id="newQuestionForm">
		<h4>Create New:</h4>
		Parent id:<input name="parentId" type="text" size="2"></input><br />
		Question text:<input name="questionText" type="text" size="25"></input><br />
		Recipient email:<input name="recipient" type="text" size="25"></input><br />
		<input type="submit" value="Create Question"></input><Br />
		<h4>Delete Question:</h4>
		<input name="deleteId" type="text" size="2"></input><input type="submit" value="Delete Question"></input>
</body>
</html>
